package com.ymttest.business;

import java.util.HashMap;
import java.util.Map;

import org.json.JSONObject;

public class JsonBeanRequestQueue {
    private static ThreadLocal<Map<String, JSONObject>> threadLocal = new ThreadLocal<Map<String, JSONObject>>(){
    	protected Map<String, JSONObject> initialValue(){
    		return new HashMap<String, JSONObject>();
    	}
    };


    
	public static JSONObject getRequest(String name) {
		return threadLocal.get().get(name);
	}

	public static void addRequest(String name, JSONObject t) {
		threadLocal.get().put(name, t);
		
	}
  
}

